package com.atguigu.feign.to.es;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class SkuEsModel implements Serializable{
    private static final long serialVersionUID = 946161;
    private Long skuId;
    private Long spuId;
    //标题
    private String skuTitle;
    private BigDecimal skuPrice;
    private String skuImg;
    //销售量
    private Long saleCount;
    private boolean  hasStock;

    //热度分数
    private Long hotScore;
    private Long brandId;
    private String brandName;
    private String brandImg;
    private Long catalogId;
    private String catalogName;
    //规格参数
    private List<attr> attrs;

    @Data
    public static class  attr implements Serializable{
        private static final long serialVersionUID = 98984651;
        private Long attrId;
        private String attrName;
        private String attrValue;
    }
}
